module.exports = function ({UsersAccounts, sequelize}) {

    /**
     * 统计分析 V2
     */
    UsersAccounts.analyseV2 = function () {
        let sql = "select status, count(*) count from UsersAccounts group by status";
        return sequelize.query(sql, {
            type: sequelize.QueryTypes.SELECT
        });
    }
}